<!DOCTYPE html>
<html lang="en">
<head>
<title>WebView4Delphi: uWVTypeLibrary: Interface ICoreWebView2Cookie</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="PasDoc 0.16.0-snapshot">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body>
<span id="ICoreWebView2Cookie"></span><h1 class="cio">Interface ICoreWebView2Cookie</h1>
<div class="sections">
<div class="one_section"><a class="section" href="#PasDoc-Description">Description</a></div><div class="one_section"><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></div><div class="one_section">Fields</div><div class="one_section"><a class="section" href="#PasDoc-Methods">Methods</a></div><div class="one_section">Properties</div></div>
<span id="PasDoc-Description"></span><h2 class="unit">Unit</h2>
<p class="unitlink">
<a href="uWVTypeLibrary.html">uWVTypeLibrary</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type ICoreWebView2Cookie = interface(IUnknown)</code></p>
<h2 class="description">Description</h2>
<p>
 Provides a set of properties that are used to manage an ICoreWebView2Cookie. </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2cookie</a>&quot;&gt;See the ICoreWebView2Cookie article.)</p>
<span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">IUnknown</li>
<li class="thisitem">ICoreWebView2Cookie</li></ul><h2 class="overview">Overview</h2>
<span id="PasDoc-Methods"></span><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Get_name-PWideChar-">Get_name</a></strong>(out name: PWideChar): HResult; stdcall;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Get_value-PWideChar-">Get_value</a></strong>(out value: PWideChar): HResult; stdcall;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Set_value-PWideChar-">Set_value</a></strong>(value: PWideChar): HResult; stdcall;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Get_Domain-PWideChar-">Get_Domain</a></strong>(out Domain: PWideChar): HResult; stdcall;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Get_Path-PWideChar-">Get_Path</a></strong>(out Path: PWideChar): HResult; stdcall;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Get_Expires-Double-">Get_Expires</a></strong>(out Expires: Double): HResult; stdcall;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Set_Expires-Double-">Set_Expires</a></strong>(Expires: Double): HResult; stdcall;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Get_IsHttpOnly-Integer-">Get_IsHttpOnly</a></strong>(out IsHttpOnly: Integer): HResult; stdcall;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Set_IsHttpOnly-Integer-">Set_IsHttpOnly</a></strong>(IsHttpOnly: Integer): HResult; stdcall;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Get_SameSite-COREWEBVIEW2_COOKIE_SAME_SITE_KIND-">Get_SameSite</a></strong>(out SameSite: <a href="uWVTypeLibrary.html#COREWEBVIEW2_COOKIE_SAME_SITE_KIND">COREWEBVIEW2_COOKIE_SAME_SITE_KIND</a>): HResult; stdcall;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Set_SameSite-COREWEBVIEW2_COOKIE_SAME_SITE_KIND-">Set_SameSite</a></strong>(SameSite: <a href="uWVTypeLibrary.html#COREWEBVIEW2_COOKIE_SAME_SITE_KIND">COREWEBVIEW2_COOKIE_SAME_SITE_KIND</a>): HResult; stdcall;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Get_IsSecure-Integer-">Get_IsSecure</a></strong>(out IsSecure: Integer): HResult; stdcall;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Set_IsSecure-Integer-">Set_IsSecure</a></strong>(IsSecure: Integer): HResult; stdcall;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Cookie.html#Get_IsSession-Integer-">Get_IsSession</a></strong>(out IsSession: Integer): HResult; stdcall;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Get_name-PWideChar-"></span><code>function <strong>Get_name</strong>(out name: PWideChar): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Cookie name.

<p>The caller must free the returned string with `CoTaskMemFree`. See [API Conventions](/microsoft-edge/webview2/concepts/win32-api-conventions#strings). </p>
<h6 class="description_section">Attributes</h6>
<dl class="attributes">
  <dt>GUID['{AD26D6BE-1486-43E6-BF87-A2034006CA21}']</dt>
  <dd></dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Get_value-PWideChar-"></span><code>function <strong>Get_value</strong>(out value: PWideChar): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Cookie value.

<p>The caller must free the returned string with `CoTaskMemFree`. See [API Conventions](/microsoft-edge/webview2/concepts/win32-api-conventions#strings). </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Set_value-PWideChar-"></span><code>function <strong>Set_value</strong>(value: PWideChar): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Set the cookie value property. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Get_Domain-PWideChar-"></span><code>function <strong>Get_Domain</strong>(out Domain: PWideChar): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 The domain for which the cookie is valid. The default is the host that this cookie has been received from. Note that, for instance, &quot;.bing.com&quot;, &quot;bing.com&quot;, and &quot;www.bing.com&quot; are considered different domains.

<p>The caller must free the returned string with `CoTaskMemFree`. See [API Conventions](/microsoft-edge/webview2/concepts/win32-api-conventions#strings). </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Get_Path-PWideChar-"></span><code>function <strong>Get_Path</strong>(out Path: PWideChar): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 The path for which the cookie is valid. The default is &quot;/&quot;, which means this cookie will be sent to all pages on the Domain.

<p>The caller must free the returned string with `CoTaskMemFree`. See [API Conventions](/microsoft-edge/webview2/concepts/win32-api-conventions#strings). </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Get_Expires-Double-"></span><code>function <strong>Get_Expires</strong>(out Expires: Double): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 The expiration date and time for the cookie as the number of seconds since the UNIX epoch. The default is -1.0, which means cookies are session cookies by default. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Set_Expires-Double-"></span><code>function <strong>Set_Expires</strong>(Expires: Double): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Set the Expires property. Cookies are session cookies and will not be persistent if Expires is set to -1.0. NaN, infinity, and any negative value set other than -1.0 is disallowed. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Get_IsHttpOnly-Integer-"></span><code>function <strong>Get_IsHttpOnly</strong>(out IsHttpOnly: Integer): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Whether this cookie is http-only. True if a page script or other active content cannot access this cookie. The default is false. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Set_IsHttpOnly-Integer-"></span><code>function <strong>Set_IsHttpOnly</strong>(IsHttpOnly: Integer): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Set the IsHttpOnly property. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Get_SameSite-COREWEBVIEW2_COOKIE_SAME_SITE_KIND-"></span><code>function <strong>Get_SameSite</strong>(out SameSite: <a href="uWVTypeLibrary.html#COREWEBVIEW2_COOKIE_SAME_SITE_KIND">COREWEBVIEW2_COOKIE_SAME_SITE_KIND</a>): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 SameSite status of the cookie which represents the enforcement mode of the cookie. The default is COREWEBVIEW2_COOKIE_SAME_SITE_KIND_LAX. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Set_SameSite-COREWEBVIEW2_COOKIE_SAME_SITE_KIND-"></span><code>function <strong>Set_SameSite</strong>(SameSite: <a href="uWVTypeLibrary.html#COREWEBVIEW2_COOKIE_SAME_SITE_KIND">COREWEBVIEW2_COOKIE_SAME_SITE_KIND</a>): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Set the SameSite property. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Get_IsSecure-Integer-"></span><code>function <strong>Get_IsSecure</strong>(out IsSecure: Integer): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 The security level of this cookie. True if the client is only to return the cookie in subsequent requests if those requests use HTTPS. The default is false. Note that cookie that requests COREWEBVIEW2_COOKIE_SAME_SITE_KIND_NONE but is not marked Secure will be rejected. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Set_IsSecure-Integer-"></span><code>function <strong>Set_IsSecure</strong>(IsSecure: Integer): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Set the IsSecure property. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="Get_IsSession-Integer-"></span><code>function <strong>Get_IsSession</strong>(out IsSession: Integer): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Whether this is a session cookie. The default is false. </p>
</td></tr>
</table>
<hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 0.16.0-snapshot</a>. </em>
</span>
</body></html>
